import request from '@/utils/request'

export const inspectionFacilitiesList = (data) => { //表格查询
  return request.request({
    url: '/maintenance-management/api/testing/facility/page',
    method: 'post',
    data
  })
}
export const inspectionFacilitiesAdd = (data) => { //新增
  return request.request({
    url: '/maintenance-management/api/testing/facility/save',
    method: 'post',
    data
  })
}
//原 put
export const inspectionFacilitiesEdit = (data) => { //编辑
  return request.request({
    url: '/maintenance-management/api/testing/facility/edit',
    method: 'post',
    data
  })
}
//原 del
export const inspectionFacilitiesDelete = (data) => { //删除
  return request.request({
    url: '/maintenance-management/api/testing/facility/del',
    method: 'post',
    data
  })
}
export const inspectionFacilitiesDetails = (data) => { //详情
  return request.request({
    url: '/maintenance-management/api/testing/facility/detail',
    method: 'post',
    data
  })
}

// 记录
export const inspectionFacilitiesRecordList = (data) => { //表格查询
  return request.request({
    url: '/maintenance-management/api/facility/testing/record/page',
    method: 'post',
    data
  })
}
export const inspectionFacilitiesRecordAdd = (data) => { //新增
  return request.request({
    url: '/maintenance-management/api/facility/testing/record/add',
    method: 'post',
    data
  })
}
//原 put
export const inspectionFacilitiesRecordEdit = (data) => { //编辑
  return request.request({
    url: '/maintenance-management/api/facility/testing/record/edit',
    method: 'post',
    data
  })
}
//原 del
export const inspectionFacilitiesRecordDelete = (data) => { //删除
  return request.request({
    url: '/maintenance-management/api/facility/testing/record/del',
    method: 'post',
    data
  })
}
export const inspectionFacilitiesRecordDetails = (data) => { //详情
  return request.request({
    url: '/maintenance-management/api/facility/testing/record/detail',
    method: 'post',
    data
  })
}